package com.guigu.buy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.Page;
import com.guigu.buy.pojo.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.buy.pojo.Order;
import com.guigu.buy.utils.PageUtils;
import com.guigu.buy.vo.CustomerVo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
public interface ICustomerService extends IService<Customer> {

    List<Order> selectCustomer(Customer customer);

    Customer selectLogin(String userAccount, String userPassword);

    Customer getById(Integer id);

    int updateUserInfo(Customer customer);

    PageUtils<Customer> Alllist(int pageNo, int pageSize, CustomerVo vo);
}
